<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>危险源清单</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="../../../layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../../../css/public.css" media="all" />
		<link rel="stylesheet" href="list.css" />
		<link rel="stylesheet" href="../../common/zTreeStyle.css" />
		<style>
			body {
				padding: 20px;
			}
			
			.multi dl dd.layui-this {
				background-color: #fff
			}
		</style>
	</head>

	<body class="childrenBody">
		<form class="layui-form">
			<form class="layui-form" style="margin-bottom: 20px;">
				<div class="layui-inline">
					<div class="layui-input-inline">
						<input type="text" class="layui-input searchVal" id="inptext" placeholder="试卷名称/姓名" />
					</div>
					<a class="layui-btn  layui-btn-normal layui-btn-sm" style="position: relative;top: 0px; left:-4px;" id="findscri" data-type="reload"><i class="layui-icon">&#xe615;</i></a>
				</div>
				<div class="layui-inline" style="float: right;margin-left: 30px;">
					<a class="layui-btn layui-btn-danger layui-btn-sm layui-btn-normal layui-bg-blue export_btn">导出成绩</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left: 30px;">
					<a class="layui-btn layui-btn-sm layui-btn-danger layui-btn-normal layui-bg-blue subject_btn" style="display: none">题库管理</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left:30px;">
					<a class="layui-btn layui-btn-sm layui-btn-normal addNews_btn" style="display: none" onclick="location.href='../test/list.html'">试卷管理</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left:30px;">
					<a class="layui-btn layui-btn-sm layui-btn-normal layui-bg-blue" href="../asAnswer/list.html">评估答题</a>
				</div>
			</form>

			<form class="layui-form" style="margin-top: 14px;margin-bottom: 15px;">
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">单位选择</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<input type="text" id="resclas" readonly="" placeholder="选择单位" style="padding-left:5px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;
    						-webkit-box-orient:vertical;width:100px" autocomplete="off" class="layui-input" lay-verify="required">
						<ul id="danwei" class="ztree" style="height:300px;width: 239px; overflow: auto;display: none;position: absolute;z-index: 999;background:white;">
						</ul>
					</div>
				</div>

				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">考试类型</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<select name="type" id="type" style="width: 150px;height: 30px">
							<option value="">请选择</option>
							<option value="0">模拟练习</option>
							<option value="1">班组测试</option>
							<option value="2">专项测试</option>
						</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">开始日期</label>
					<div class="layui-input-block" style="line-height: 38px;position: relative;margin-left:80px">
						<input type="text" class="layui-input" id="statdate" readonly="" placeholder="开始日期">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">结束日期</label>
					<div class="layui-input-block" style="line-height: 38px;position: relative;margin-left:80px">
						<input type="text" class="layui-input" id="enddate" readonly="" placeholder="结束日期">
					</div>
				</div>

				<div class="layui-inline">
					<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="seleCheck" style="position: relative;top: -3px;margin-left:10px;">筛选
            </button>
				</div>
			</form>
			<table id="dangerList" lay-filter="dangerList"></table>
		</form>
		<div class="score">
			<div class="title">注：点击题号查看题目 <i class="layui-icon layui-unselect layui-tab-close">ဆ</i></div>
			<div class="box">
				<template v-for="sort in sortType">
					<template v-if="sort == '单选'">
						<div class="type" v-if="radio.length>0">单选题</div>
						<ul>
							<li v-for="(item,index) in radio" :questionId="item.questionId" :id="id" :paperid="paperid">
								<span>{{index+1}}</span>
								<i class="layui-icon layui-tab-close" v-if="item.rightWrong == 1">ဆ</i>
								<i class="layui-icon" v-else>&#xe605;</i>
							</li>
						</ul>
					</template>
					<template v-if="sort == '多选'">
						<div class="type" v-if="multiSelect.length>0">多选题</div>
						<ul>
							<li v-for="(item,index) in multiSelect" :questionId="item.questionId" :id="id" :paperid="paperid">
								<span>{{index+1}}</span>
								<i class="layui-icon layui-tab-close" v-if="item.rightWrong == 1">ဆ</i>
								<i class="layui-icon" v-else>&#xe605;</i>
							</li>
						</ul>
					</template>
					<template v-if="sort == '判断'">
						<div class="type" v-if="tfng.length>0">判断题</div>
						<ul>
							<li v-for="(item,index) in tfng" :questionId="item.questionId" :id="id" :paperid="paperid">
								<span>{{index+1}}</span>
								<i class="layui-icon layui-tab-close" v-if="item.rightWrong == 1">ဆ</i>
								<i class="layui-icon" v-else>&#xe605;</i>
							</li>
						</ul>
					</template>


				</template>

			</div>
		</div>
		<script type="text/javascript" src="../../common/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="../../common/config.js"></script>
		<script>
//			var salt = sessionStorage.getItem('usersalt');
//			//类型选择
//			$.post(url + "dangerList/getAllType", {
//				Token: salt,
//			}, function(data) {
//				if(data.code == 0) {
//					var list = data.data;
//					list.forEach(function(item) {
//						var option = "<option value='" + item.name + "'>" + item.name + "</option>";
//						$("#type").append(option)
//					});
//
//				}
//			})
		</script>

		<script type="text/javascript" src="../../../layui/layui.js"></script>
		<script type="text/javascript" src="../../common/jquery.ztree.core.js"></script>
		<script type="text/javascript" src="../../common/jquery.ztree.excheck.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/vue"></script>
		<script type="text/javascript" src="list.js"></script>
		<script type="text/javascript">
			$("body").click(function() {
				$("#danwei").hide();
			})
			$('#resclas').click(function() {
				return false;
			});
			$('#danwei').click(function() {
				return false;
			});
		</script>

	</body>

</html>